home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_weap_aibombmophia.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  64 lines

  1. # Jones 3D Cog Script
  2. #
  3. # actor_AIBombMophia.cog
  4. #
  5. # [MDR]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ===================================================================
  10.  
  11. symbols
  12.  
  13. message        created
  14. message        pulse
  15. message        removed
  16.  
  17. # ************************** TEMPLATES *************************
  18. template    tpl_glow=mophiaBombFX                    local
  19. template    tpl_sparks=mophiaSparksLg                local
  20. template    tpl_MardukHitTrail=mardukHitTrail            local
  21. template    tpl_sparksremove=mardukHitSparks             local 
  22.  
  23. material    mat_bomb1=gen_a4sfx_inzap.mat            local
  24. material    mat_bomb2=gen_a4sfx_lightning.mat        local
  25.  
  26. # ************************** MISC LOCAL VARS *******************
  27. thing        t_bomb                                    local
  28. thing        t_Trail                                    local
  29. int            n_animID1                                local
  30. int            n_animID2                                local
  31.  
  32. end
  33.  
  34.  
  35. # ===================================================================
  36. code
  37.  
  38. # ...................................................................
  39. created:
  40.  
  41.     t_bomb = GetSenderRef();
  42.  
  43.     CreateThingAtPos(tpl_glow, GetThingSector(t_bomb), GetThingPos(t_bomb), '0 0 0');
  44.     CreateThingAtPos(tpl_sparks, GetThingSector(t_bomb), GetThingPos(t_bomb), '0 0 0');
  45.  
  46.     SetThingPulse(t_bomb, 0.025);
  47. #    MaterialAnim(mat_bomb1, 30, 1);
  48. #    MaterialAnim(mat_bomb2, 30, 1);
  49.  
  50.     return;
  51.  
  52. pulse:
  53.     t_bomb = GetSenderRef();
  54.     t_Trail = CreateThing(tpl_MardukHitTrail, t_bomb);
  55.  
  56.     return;
  57.  
  58. removed:
  59.     CreateThingAtPos(tpl_sparksremove, GetThingSector(t_bomb), GetThingPos(t_bomb), '0 0 0');
  60.     return;
  61.  
  62. # ===================================================================
  63. end
  64.